var stories = domain.listStories();
var storySize = stories.size();
for(var i = 0; i < stories.size(); i++) {
  var story = stories.get(i);
  mgr.registerChange(story);
}
log.info('Registered changes for ' + stories.size() + ' stories.');